/**
 * 
 */
package us.gaaoc.framework.util;

import java.text.DateFormat;
import java.text.ParseException;

import org.apache.log4j.Logger;

/**
 * Remove this class as all methods added in the DateUtil class.
 * @author Sukhada
 *
 */
public class HelperClass {
	
	private static Logger LOG = Logger.getLogger(HelperClass.class);

	
	 /**
     * This method converts util date to sql date.
     * @param utilDate Date
     * @return Date
    
    public static java.sql.Date utilToSqlDate(java.util.Date utilDate) {
        java.sql.Date sqlDate = null;
        if (utilDate != null) {
            sqlDate = new java.sql.Date(utilDate.getTime());
        }
        return sqlDate;
    }
    
    
    /**
     * This method converts GregorainCalendar date to sql date.
     * @param GregorainCalendar Date
     * @return Date
     
    public static java.sql.Date GregorianCalendarToSqlDate(java.util.GregorianCalendar calendar) {
        java.sql.Date sqlDate = null;
        if (calendar != null) {
            sqlDate = new java.sql.Date(calendar.getTime().getTime());
        }
        return sqlDate;
    }

    /**
     * This method converts sql date to util date.
     * @param sqlDate Date
     * @return Date
     
    public static java.util.Date sqlToUtilDate(java.sql.Date sqlDate) {
        java.util.Date utilDate = null;
        if (sqlDate != null) {
            utilDate = new java.util.Date(sqlDate.getTime());
        }
        return utilDate;
    }
    
    /**
     * This method converts a string to java.util.date.
     * @param s String
     * @return Date
     
    public static java.util.Date convertStringToDate(String s) {
        DateFormat format = DateFormat.getDateInstance(DateFormat.MEDIUM);
        java.util.Date newDate = null;
        try {
            newDate = format.parse(s);
        } catch (ParseException pe) {
            LOG.error(
                    "Date Parse Exception in Base Request Message Processor Page " +
                    pe);
        }
        return newDate;
    }
*/
}
